h = eval(input("输入本月的工资："))
g=h-5000
if g<=0:
    s=0
elif 0<g<=1500:
    s=g*0.03
elif 1500<g<=4500:
    s=(g-1500)*0.1 + 1500*0.03
elif 4500<g<=9000:
    s=(g-4500)*0.2 + 3000*0.1 + 1500*0.03
elif 9000<g<=35000:
    s=(g-9000)*0.25 + 4500*0.2 + 3000*0.1 + 1500*0.03
elif 35000<g<=55000:
    s=(g-35000)*0.3 + 26000*0.25 + 4500*0.2 + 3000*0.1 + 1500*0.03
elif 55000<g<=80000:
    s=(g-55000)*0.35 + 20000*0.3 + 26000*0.25 + 4500*0.2 + 3000*0.1 + 1500*0.03
elif 80000<=g:  
    s=(g-80000)*0.45 + 25000*0.35 + 20000*0.3 + 26000*0.25 + 4500*0.2 + 3000*0.1 + 1500*0.03 
print("本月的税收为:{}".format(s))    